﻿using DDDEF.Domain.Services;
using DDDEF.Infrastructure.Domain.Musics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DDDEF.Presentation.Controllers
{
    public class HomeController : Controller
    {
        #region Fields

        private IMusicService _musicService;

        #endregion

        #region Constructors

        public HomeController(IMusicService musicService)
        {
            this._musicService = musicService;
        }
        #endregion

        public ActionResult Index()
        {
            var music = new Music { };
            _musicService.Insert(music);
            ViewBag.Title = "Home Page";

            return View();
        }
    }
}
